package com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.model.Response;
import com.service.StatisticsService;

@Controller
public class StatisticsController {

	@Autowired
	private StatisticsService statisticsService;

	@RequestMapping("getAll.do")
	@ResponseBody
	public Response getAll() {
		return new Response(statisticsService.getAll("key"));
	}

	 

}
